package cn.tianyigps.tianyigpsgatherchecker.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.List;

/**
 * Created with IDEA
 * author:guibin.cui
 * Date:2018/6/4
 * Time:10:58
 * 报警模型
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class AlarmModel {

    @Id
    private String id;
    //当前策略
    private String ruleId;
    //策略类型
    private String ruleType;
    //报警时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date alarmTime;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    //Gps经度
    private Double gpsLongitude;
    //Gps纬度
    private Double gpsLatitude;
    //设备id
    private String equipmentId;
    //其他信息
    private String alarmMsg;
    //周围敏感点
    List<String> points;
    //常驻地类型
    private String addressType;

}
